package com.chuan.it_market.service;

import com.chuan.it_market.pojo.dto.ResponseDTO;
import com.chuan.it_market.pojo.entity.Goods;
import com.chuan.it_market.pojo.vo.GoodsVO;

import java.util.List;

public interface GoodsService {
    ResponseDTO add(Goods goods);


    ResponseDTO getGoodsByTnoAndSno(Integer typeno, Integer sno);

    List<Goods> selectAllGoods(Integer sno);

    List<GoodsVO> selectAllGoods();

    List<Goods> getGoodsByInput(String name,Integer sno);

    Goods getGoodsDetail(Integer gno);

    Goods getGoodsByPrimaryKey(Integer sno);

    ResponseDTO update(Goods goods);

    int delete(Integer gno);

    GoodsVO getGoodsVODtetail(Integer gno);

    List<GoodsVO> getGoodsByInput2(String name);

    List<GoodsVO> getGoodsVOSByTno(Integer typeno);

    void ReCount(Goods goods);
}
